
////----------------------//
///**HighPassSharpening**///
//----------------------////
#define USE_HighPassSharpening 1 //[Sharp] //-Sharpens the image.

//>Sharpening Settings<\\
#define SharpPrecision 1.0 //[0.4:10.0] //-#'s > 1 = smaller radius, #'s < 1 = bigger radius. A small radius will sharpen small details, a large radius will sharpen large details.
#define SharpRadius 1 //[0:2] //-0 = 3x3 mask, 1 = 5x5 mask, 2 = 7x7 mask.                            
#define BlendMode 4 //[1|2|3|4|5|6] //-1 = Soft Light(weak), 2 = Overlay(neutral), 3 = Multiply, 4 = Hard Light, 5 = Vivid Light, 6 = Screen(strong)
#define HPSharpStrength -1.30 //[-3.00:3.00] //-Strength of the sharpening effect. Negative values soften the image.

//>Advanced Sharpening Settings<\\
#define DarkLineIntensity 1.70 //[0.00:3.00] //-
#define LightLineIntensity 0.90 //[0.00:3.00] //-
#define DarkLineAmount 0.40 //[0.00:0.50] //-Limits the amount of sharpening done to bright pixels. Setting to 0.50 = no sharpening to bright pixels.
#define LightLineAmount 0.05 //[0.00:0.50] //-Limits the amount of sharpening done to dark pixels. Setting to 0.50 = no sharpening to dark pixels.
#define ViewSharpMask 0 //[0|1] //-Set to 1 to view the SharpMask. Helpful when adjusting CurveStrength, SharpMaskPrecision, and halo settings. 
#define HighPass_ToggleKey VK_SCROLL //[undef] //-Default is the "Insert" key. Change to RFX_ToggleKey to toggle with the rest of the Framework shaders.


////-----------//
///**Clarity**///
//-----------////
#define USE_Clarity 1 //[Clarity] //-A local contrast enhancement technique that will emphasize objects in high contrast areas.

//>Clarity Settings<\\
#define ClarityRadius 1 //[0:5] //-A larger radius can help reduce the appearance of halos around objects. Increasing the radius comes with a performance cost.
#define ClarityOffset 2.0 //[1.0:10.0] //-The distance each pixel is moved during blurring. Large offsets will increase the radius but can look choppy.
#define ClarityBlendMode 1 //[1|2|3|5|6|7] //-1 = Soft Light(weak), 2 = Overlay(neutral), 3 = Multiply, 4 = Hard Light, 5 = Vivid Light, 6 = Soft Light#2(lighter), 7 = Soft Light#3(darker)
#define ClarityStrength 0.80 //[-3.00:3.00] //-Strength effect. 

//>Advanced Clarity Settings<\\
#define DarkIntensity 0.29 //[0.00:3.00] //-Adjust the strength of dark halos. If the dark halos are clamped, higher values may increase the radius but not the darkness.
#define LightIntensity 0.00 //[0.00:3.00] //-Adjust the strength of light halos. If the light halos are clamped, higher values may increase the radius but not the brightness.
#define DarkAmount 0.00 //[0.00:0.50] //-Limits the amount of contrast enhancement done to dark pixels. Setting to 0.0 = no contrast enhancement on dark pixels.
#define LightAmount 0.50 //[0.00:0.50] //-Limits the amount of contrast enhancement done to bright pixels. Setting to 0.0 = no contrast enhancement on bright pixels.
#define ViewMask 0 //[0:1] //-The mask is what creates the effect. View it when making adjustments to get a better idea of how your changes will affect the image. 
#define BlendIfDark 0 //[0:255] //-Any pixels below this value will be excluded from the effect. Set to 50 to target mid-tones.
#define BlendIfLight 255 //[0:255] //-Any pixels above this value will be excluded from the effect. Set to 205 to target mid-tones.
#define ViewBlendIfMask 0 //[0:1] //-Areas covered in RED receive contrast enhancement, areas covered in BLUE do not. The stronger the color, the stronger the effect.

//>Performance and Misc Settings<\\
#define ClarityTextureFormat 0 //[0|1|2] //-0 = RGBA8, 1 = RGBA16F, 2 = RGBA32F. 
#define ClarityTexScale 2 //[0|1|2] //-0 = no scaling, 1 = 1/2 resolution, 2 = 1/4 resolution. Reduces performance cost.  
#define Clarity_ToggleKey VK_SCROLL //[undef] //-Default is the "Insert" key. Change to RFX_ToggleKey to toggle with the rest of the Framework shaders.


////-----------------------//
///**ChromaticAberration**///
//-----------------------////
#define USE_ChromaticAberration 1 //[ChroAb] //-A chromatic aberration effect.

//>ChromaticAberration<\\
#define CA_Color 0 //[0:4] //-0 = red/yellow/green/cyan/blue/violet, 1 = red/blue, 2 = red/cyan, 3 = blue/yellow, 4 = magenta/green
#define CA_Width 2 //[0:4] //-Initial width of the effect. Blurring will increase the width.
#define CA_Blurring 2 //[0:4] //-Blurs the CA making it smoother and wider. 0 = no blurring, 1 = 3 samples, 2 = 5 samples, 3 = 11 samples, 4 = 21 samples.
#define CA_Strength 0.67 //[0.00:1.00] //-Strength of the effect.
#define ca_ToggleKey VK_INSERT //[undef] //-Default is the "Insert" key. Change to RFX_ToggleKey to toggle with the rest of the Framework shaders.

//>Lens Distortion Settings<\\
#define CA_RadialBlurring 2 //[0:4] //-Blurs the image outward from the center. 0 = off, 1 = 3 samples, 2 = 5 samples, 3 = 11 samples, 4 = 21 samples
#define RadialBlurStrength 1.0 //[0.0:1.0] //-Values less than 1.0 will reduce the amount of blurring to the image but the CA will remain blurred.
#define CA_LensShape 1.00 //[1.00:2.00] //-Adjusts the shape of the "Lens". 1.00 = Round, #'s > 1.00 = Ellipse.
#define CA_LensFocus 3.0 //[1.0:9.0] //-Determines how far from the center of the screen the CA effect begins. Lower #'s = further from the center.

//>CA Motion Blur Settings<\\
#define Use_MotionBlurCA 0 //[0:1] //-Setting to 1 enables motion induced CA.
#define CA_BlurStrength 0.40 //[0.00:1.00] //-Strength of the effect.


////---------------//
///**ColorFilter**///
//---------------////
#define USE_ColorFilter 1 //[ColorFilter] //-Applies an adjustable color filter to the image.

//>Color Filter Global Settings<\\
#define FilterStrength 0.40 //[-1.00:1.00] //-Strength of the filter. Positive values add color, negative values remove color.
#define FilterBlendMode 2 //[0:5] //-0 = Overlay, 1 = Multiply, 2 = Soft Light, 3 = Linear Light, 4 = Burn and Dodge, 5 = Screen
#define FilterExposure 0.42//[0.00:2.00] //-#'s > 1.00 = darker, #'s < 1 = brighter. This will have an effect even if all filters are disabled.
#define AdjustSaturation 1.10 //[0.00:2.00] //-Amount of color from the original in the final image. 0.00 = black and white, values greater than 1.00 add more color. This will not change the saturation of the color filters, only the original image.
#define AdjustShadows -0.25 //[-1.00:1.00] //-A quick way to adjust shadows if a color filter has made them brighter or darker than you would like them to be. Values greater than 0.00 will make shadows brighter, values less than 0.00 will make them darker.
#define DitherFilter 1 //[0:1] //-Iestyn's RGB dither (Valve). Reduces color banding that may be introduced by the color filter.
#define ViewFilter 0 //[0:1] //-Set to 1 to view the color filter. Helpful for selecting and adjusting colors.
#define Filter_ToggleKey VK_SCROLL //[undef] //-Default is the "Insert" key. Change to RFX_ToggleKey to toggle with the rest of the Framework shaders.

//>Color Selection / Creation<\\
#define BrightColorSelection 10 //[0:10] //-Color applied to bright areas. 0 = Custom, 1 = Off-White, 2 = Light-Yellow, 3 = Yellow, 4 = Orange, 5 = Red, 6 = Blue Violet, 7 = Blue, 8 = Cyan, 9 = Green, 10 = Brown
#define DarkColorSelection 7 //[0:10] //-Color applied to dark areas. 0 = Custom, 1 = Blue, 2 = Purple, 3 = Red, 4 = Orange, 5 = Green, 6 = Olive, 7 = Brown, 8 = Dark Cyan, 9 = Dark Yellow, 10 = Grey
#define BrightColorRed 135 //[0:255] //-Amount of RED in the color applied to bright areas.
#define BrightColorGreen 135 //[0:255] //-Amount of GREEN in the color applied to bright areas.
#define BrightColorBlue 115 //[0:255] //-Amount of BLUE in the color applied to bright areas.
#define DarkColorRed 80 //[0:255] //-Amount of RED in the color applied to dark areas. 
#define DarkColorGreen 55 //[0:255] //-Amount of GREEN in the color applied to dark areas.
#define DarkColorBlue 80 //[0:255] //-Amount of BLUE in the color applied to dark areas.

//>Filter Adjustments<\\
#define BrightColorAmt 0.30 //[0.00:0.50] //-Amount of the bright color in the filter. Setting too high will cause banding.
#define DarkColorAmt 0.45 //[0.00:0.50] //-Amount of the dark color in the filter. Setting too high will cause banding.
#define HighPower 0.6 //[0.0:1.0] //-Raising this will make the color in bright areas brighter. 
#define LowPower 0.6 //[0.0:1.0] //-Raising this will make the color in dark areas darker.

//>Filter Color Adjustments<\\
#define BrightRed 1.05 //[0.01:2.00] //-Adjust the amount of RED in BRIGHT areas of the color filter. It is helpful to set ViewFilter to 1 when adjusting. # > 1.00 ADD color, # < 1.00 REMOVE color.
#define BrightGreen 1.12 //[0.01:2.00] //-Adjust the amount of GREEN in BRIGHT areas of the color filter. It is helpful to set ViewFilter to 1 when adjusting. # > 1.00 ADD color, # < 1.00 REMOVE color.
#define BrightBlue 1.13 //[0.01:2.00] //-Adjust the amount of BLUE in BRIGHT areas of the color filter. It is helpful to set ViewFilter to 1 when adjusting. # > 1.00 ADD color, # < 1.00 REMOVE color.
#define MidRed 1.05 //[0.01:2.00] //-Adjust the amount of RED in MID areas of the color filter. It is helpful to set ViewFilter to 1 when adjusting. # > 1.00 ADD color, # < 1.00 REMOVE color.
#define MidGreen 1.15 //[0.01:2.00] //-Adjust the amount of GREEN in MID areas of the color filter. It is helpful to set ViewFilter to 1 when adjusting. # > 1.00 ADD color, # < 1.00 REMOVE color.
#define MidBlue 0.93 //[0.01:2.00] //-Adjust the amount of BLUE in MID areas of the color filter. It is helpful to set ViewFilter to 1 when adjusting. # > 1.00 ADD color, # < 1.00 REMOVE color.
#define DarkRed 1.05 //[0.01:2.00] //-Adjust the amount of RED in DARK areas of the color filter. It is helpful to set ViewFilter to 1 when adjusting. # > 1.00 ADD color, # < 1.00 REMOVE color.
#define DarkGreen 1.10 //[0.01:2.00] //-Adjust the amount of GREEN in DARK areas of the color filter. It is helpful to set ViewFilter to 1 when adjusting. # > 1.00 ADD color, # < 1.00 REMOVE color.
#define DarkBlue 1.00 //[0.01:2.00] //-Adjust the amount of BLUE in DARK areas of the color filter. It is helpful to set ViewFilter to 1 when adjusting. # > 1.00 ADD color, # < 1.00 REMOVE color.

